package edu.nju.cineplex.factory;

import edu.nju.cineplex.dao.HallDao;
import edu.nju.cineplex.dao.MovieDao;
import edu.nju.cineplex.dao.SaleDao;
import edu.nju.cineplex.dao.SeatDao;
import edu.nju.cineplex.dao.TimetableDao;
import edu.nju.cineplex.dao.UserDao;
import edu.nju.cineplex.dao.impl.HallDaoImpl;
import edu.nju.cineplex.dao.impl.MovieDaoImpl;
import edu.nju.cineplex.dao.impl.SaleDaoImpl;
import edu.nju.cineplex.dao.impl.SeatDaoImpl;
import edu.nju.cineplex.dao.impl.TimetableDaoImpl;
import edu.nju.cineplex.dao.impl.UserDaoImpl;

public class DaoFactory {
	public static UserDao getUserDao() {
		return UserDaoImpl.getInstance();
	}
	
	public static MovieDao getMovieDao() {
		return MovieDaoImpl.getInstance();
	}
	
	public static HallDao getHallDao(){
		return HallDaoImpl.getInstance();
	}
	
	public static TimetableDao getTimetableDao(){
		return TimetableDaoImpl.getInstance();
	}
	
	public static SaleDao getSaleDao(){
		return SaleDaoImpl.getInstance();
	}
	
	public static SeatDao getSeatDao(){
		return SeatDaoImpl.getInstance();
	}
}
